package jjcache

import pb "jjcache/jjcache/jjcachepb"

// PeerPicker in order to get the PeerGetter corresponding to the key
type PeerPicker interface {
	PickPeer(key string) (peer PeerGetter, ok bool)
}

// PeerGetter can get cache from remote node
type PeerGetter interface {
	Get(in *pb.Request, out *pb.Response) error
}
